package com.wanmait.bootdemo.service.impl;

import com.wanmait.bootdemo.mapper.QuestionTypeMapper;
import com.wanmait.bootdemo.pojo.QuestionType;
import com.wanmait.bootdemo.service.QuestionTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class QuestionTypeServiceImpl implements QuestionTypeService {


    @Resource
    QuestionTypeMapper questionTypeMapper;

    @Override
    public List<QuestionType> findAll() {
        return questionTypeMapper.selectList();
    }


}
